# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cairomm
pkgver=1.12.2
pkgrel=3
pkgdesc="C++ bindings to Cairo vector graphics library"
url="https://www.cairographics.org"
arch="all"
license="LGPL-2.0-or-later AND MPL-1.1"
depends_dev="libsigc++-dev"
makedepends="$depends_dev cairo-dev perl"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.cairographics.org/releases/cairomm-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

doc() {
	default_doc

	mv "$pkgdir"/usr/share/devhelp "$subpkgdir"/usr/share
	rmdir "$pkgdir"/usr/share
}

sha512sums="df2749e3865dfddf04c40b671453e057e7e76c5052bfc38d5b986c544b7ec43de40b1ef5b4d0e34f58781230d4b220c4176ddef773cd6a316c73641c4aec77c0  cairomm-1.12.2.tar.gz"
